import { defineStore } from 'pinia'
import { GET_STOCK_ALL_DATA } from "@/api/stock";
import global from '@/config/global'
import { ref } from 'vue'


export const useStockStore = defineStore('stock', () => {
  const stock = ref([])
  const getStock = async () => {
    const data: any = await GET_STOCK_ALL_DATA(`/api11/hslt/list/${global.client}`)
    stock.value = data
  }
  return { stock, getStock }
})
